package com.system.pojo;

import lombok.Data;

@Data
public class Product {
    private Integer id;

    private String productName;

    private Double price;
    
    //购买数量
    private Integer purchaseNum;

    private Integer repertory;

    private Integer min;

    private Integer max;

    private Boolean status;

    private Double amounts;

    private Boolean stocking;

    public void addPurchaseNum(Integer num){
        this.purchaseNum += num;
    }

    public void addRepertory(Integer num){
        this.repertory += num;
    }
}